package com.yumeko.service;

import com.yumeko.entity.TPayment;
import com.yumeko.utils.ResponseData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "nacos-payment-provider",fallback = PaymentFallbackService.class)
public interface PaymentService {
    @GetMapping(value = "/paymentSQL/{id}")
    ResponseData<TPayment> PaymentSQL(@PathVariable("id") Long id);
}
